package fun.wlfj.factory;

import fun.wlfj.dao.ICashDao;
import fun.wlfj.dao.ILogDao;
import fun.wlfj.dao.IPayBackDAO;
import fun.wlfj.dao.IPayListDao;
import fun.wlfj.dao.IProductDao;
import fun.wlfj.dao.IUserDao;
import fun.wlfj.dao.proxy.CashDaoProxy;
import fun.wlfj.dao.proxy.LogDaoProxy;
import fun.wlfj.dao.proxy.PayBackProxy;
import fun.wlfj.dao.proxy.PayListProxy;
import fun.wlfj.dao.proxy.ProductProxy;
import fun.wlfj.dao.proxy.UserProxy;
import fun.wlfj.vo.User;

public class CashSystemFactory {
	
	public static ICashDao getCashDao() {
		return new CashDaoProxy();
	}
	
	public static ILogDao getLogDao() {
		return new LogDaoProxy();
	}
	
	public static IPayBackDAO getPayBackDao() {
		return new PayBackProxy();
	}
	
	public static IPayListDao getPayListDao(User u) {
		return new PayListProxy(u);
	}
	
	public static IProductDao getProductDao() {
		return new ProductProxy();
	}
	
	public static IUserDao getUserDao() {
		return new UserProxy();
	}

}
